﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Composite.Modularity;
using Microsoft.Practices.Composite.Regions;
using Microsoft.Practices.Unity;

namespace DiscoveryLogic.Analytics.Modules.DataNavigation
{
    public class NetworkTreeModule:IModule 
    {
        public IUnityContainer Container { get; private set; }
		public IRegionManager RegionManager { get; private set; }

        public NetworkTreeModule(IUnityContainer container, IRegionManager regionManager)
		{
			Container = container;
			RegionManager = regionManager;
		}

        #region Implementation of IModule

        public void Initialize()
        {
            NetworkTreeView networkTreeView = Container.Resolve<NetworkTreeView>();
            RegionManager.Regions["NetworkTreeRegion"].Add(networkTreeView);
        }

        #endregion
    }
}
